package models;

public class Track {
	public String title;
	public String[] instruments;
	public int measuresPerPhrase;
	public int phraseAmount;
	public boolean harmonic;
	public String keySignature;
	public int tempo;
	
	public Track(String title, String[] instruments, int measureCount, int phraseCount, boolean harmonic, String keySign, int tempo)
	{
		this.title = title;
		this.instruments = instruments;
		this.measuresPerPhrase = measureCount;
		this.phraseAmount = phraseCount;
		this.harmonic = harmonic;
		this.keySignature = getKeySignature(keySign).toString();
		this.tempo = tempo;
	}
	
	public String getKeySignature(String keySign)
	{
		String[] key = keySign.split(" ");
		return "K"+ key[0] +"maj";
	}
}
